Build fixes.
Restructured the build.
Upgrading gradle wrapper to 1.6
Moved phonegap key & password conf to config.groovy.
Moved phantomjs conf to config.groovy.
Merge pull request #192 from iceglow/cleanup

Restructured the build.