This may, or may not, be of help...
2017R1 (due out fairly soon, I believe) contains some goodies for Handlers, including new tools for REST and support for SSL (https:// to the rest of us!) I haven't checked, but I wouldn't be surprised to see Authentication and Cookie support being there....
HTH