Fixed bug in client error section
Fixed wrong URL for bundledlookups
Added more error passing
Added mocha testing. Most tests implemented