Code style fixes.
Changed app web service to return proper relative URLs to JavaScript and CSS files.
Fixed support for loading app resources from web service linked to /files/subpath.