Slight refactoring to make frontend tests easier to run.
Simplify client-side tests a bit
Run tests on separate port from normal tm2.
Merge pull request #371 from mapbox/test-frontend

Test frontend