Music working and audio service subscribe

From now on all services that are responsible for resources must allow
register and unregister for resources so we can make sure all associated
resources are released before the service is terminated.