Anand - added phantomjs to run UI tests in headless mode. Added a mifosx_noui gradle command for the same. Some refactoring.