Support TLS, dynamic listeners and encrypted storage

Minor nitpick, if you make error responses lowercase, they look nicer when embedded within another error message.