Split out the auth handlers into their own file

Now they are part of a jquery plugin which will make reusing a bit
easier