remove 'in' prefixes from arguments.
factor url resolution slightly
Improve relative path resolution; fixes issue #31