added initUser methods in test class
Fixed markUnmarkNSWF method: the submissions take a while to refresh, so the execution has to be paused with Thread.sleep
Removed check for changing of nsfw attribute
Merge pull request #37 from cgza/dev

added initUser methods in test class
Merge pull request #39 from sfat/master

added ApiEndPointUtils to cleanup a bit the constants throughout the calls of Utils.get/post
Merged from karan/master and resolved conflicts
Merge pull request #38 from RaulLepsa/master

Fixed markUnmarkNSWF method
Refactored method that retrieves the user's information and implemented jUnit test for it
Moved User-related information in the corresponding UserInfo class. Created a constructor that creates a UserInfo object from a JSON object. Removed  unnecessary fields and methods from the User class.
Implemented jUnit test for User.about method and improved it
Moved Exception class and Enums in the corresponding packages
Merge pull request #40 from RaulLepsa/master

Code improvements and refactoring regarding User and UserInformation
Added ResClient interface which Utils implements. Moved away from static methods in Utils so we can get to a point where unit testing is easier. Updated usages of Utils to instantiate a copy at class level where possible
created a drop in replacement to Utils; HttpRestClient.
Separated out test to assert on single action
Moved the JSONSimple object toString utility to it's own class and renamed to avoid clashes with Object's toString

Still todo:
RestResponseParser needs to return a more information rich response rather than just the JSONSimple output.
Look at cookie management using CookieStore
Generify the execution of HttpMethods
set mockito scope to test; whoops
some piddling with the method builders
Added a response interface so we can return a response object rather than either Object or JSONObject to get and post requests respectively.
Updated the response handler to return a Response object, created a UtilResponse and updated Utils to return it so we maintain a consistent interface between the old and new style of http interaction
Split the downloading of captcha images out to a separate class
Created unit tests for Captcha; found bug when handling json response in unexpected format within method Captcha.newCaptcha() - Ignored failing test
made the construction of the complex(ish) json object less of a hack
Moved json helper methods to testSupport package