Feature/api

Add support for login with API token. Needed this for this project: 

http://jorism.github.io/Heimdroid/

I ran into merge conflicts, I hope I solved them properly. 

Here are basic docs for API: http://docs.heimcontroljs.apiary.io/
I'm happy to change docs to whatever format/system you want, just let me know