Added unit test project and unit tests for sending password reset email, refactored a bit to support testing (made dependencies constructor injected.