Mayor JavaScript overhaul.

Still missing loads of specs. Started implementation of acceptance
specs using Appium+WebDriver so we can use Sauce Labs with Travis.

Totally Work In Progress.