Refactored the example user functionality to be more modular, and hopefully more testable.