Optional authentication and additional verify callback

Added optional authentication and the ability to call another function to further validate the token

* Optional authentication is useful when you wish to serve both secure and unsecured services via the same server socket
* The ability to specify an additional function to be called to further validate the token is useful when you wish to be able to expire tokens for some reason