Cleaned up code base, added Phonegap

Lots of optimization was done for this commit. Now packaged as an iOS
app for use with iOS 8’s new WebGL support within WebViews.