Added Authentication system and missing functionality to JSONObjectWrapper.java