updated promises to remove 'environment' from global scope
renamed request() to dispatch()
updated tests to use relative paths (for repo embedding)