Js client refactor2

Merging into master to provide client for use in the recruitment tool buildout