Apple Music + pluggable media library
You can do all of these five (five because your second question is actually two separate questions) by subscribing to either iTunes Match or Apple Music service. How you do exactly any of those five, however, depends a bit on which macOS version your Mac is running on.