Added support for multiple resources

Includes new FileResource which acts as a normal webserver.
Refactored and improved error reporting