move authenticate into httpclient, create a rootviewcontroller