Errors refactoring, URIResolver

Each error/warning in Errors.js now stores its name (used by the XQueryResolver). 

Added first draft of URIResolver. Remote resolution, implementation of C9URIResolver and full integration in Compiler are still TODO.