Switch to the new API version 2
Update documentation, use https
Coding styles updates
Merge pull request #4 from attm2x/apiv2-refactor

Switch to the new API version 2