improve several things

- add sphinx
- support tls
- performance improvements
- add authenticator interface (future use)