Update view.js

Adds support for relative URLs in templates loaded with RequireJS. Allows us to work with custom `baseUrl`s in `require.config()`.

Update view.js

dumb little error

Update view.js

Checks if `require.toUrl` exists as it is [not included in RequireJS' almond](https://github.com/jrburke/almond#restrictions). It shouldn't be needed in production builds, anyway.

Update view.js

maybe this will fix the travis ci errors? :-/

test