Seperates command from parameters in URI.  Sets cookie for login, though commented out temporarily