Add support for noSession and JSON response

Makes it possible to configure without the need for sessions as well as responde with json.

Extra: adds userId to response.
Add support for loopback 2.x

Adds support for loopback 2.x while maintaining backward compatibility.
Add support for loopback 2.x

Adds support for loopback 2.x while maintaining backward compatibility.
Merge pull request #13 from JonnyBGod/master

Add support for noSession and JSON response