Add authentication scaffold
Use SSL/TLS for API 2.0

* Permanent storage for the x509 certificate is still missing