added very simple restapi for logging in.  will add a rest based login form soon enough