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.
I would put this in a properties file as it might change and we might want to test other environments.