Implemented a test to test reset password functionality

Rather large commit as had to implement functionality to, via an IMAP javax.mail API, log in and check for reset password email.
lol - I nearly said exactly the same thing looking at it yesterday before I figured out what it was