Overhaul resource handler

 - use an explicit id to identify resources instead of the source
 - fixes with loading resources using an XMLHttpRequest
Add player using the new app module system