Implemented authentication and api key request.
Merge branch 'dev-serverlayer' into dev-gui