PageService renamed to ResourceService, bug fixes

Rename PageService to ResouceService since it now serves all type of
static files not limited to html. Bug fix for js file not loading: now
response content-type is correctly set for js files so it can be loaded.
Added test files for ResourceService. Changed schema for
ResourceService.