factor more code out of controller into its own module
this fixes an issue with proxying since proxy.js and controller.js were
requiring each other and causing a bug for selendroid / chrome
add test to make sure selendroid can proxy errors
Merge pull request #1007 from jlipps/master

refactor and proxy fix