set up server side of authentication

This adds the server side of the authentication that works with the swift code that is currently in another project file (not added yet).

We need to go through and remove/comment out the passport code.