Create Messenger.java

This file currently contains the method to register a user. You can try it out yourself and it should work.