Refactored the HTTP login stuff to more generic.  need to further
implement the user creation activity.