Added HTTPS support, some code cleanup.
Added token refresh on 401 error.
Renamed license, added some documetation.