refactored litLogin code in to various functions
removed test specific routes and made tests a naming convention