Added .getRefDocTree()
Bug fix
Params & query passed to view in .view()
Reorganistation to support browserify