Add first working test, refactor and fix things

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Close the frontend after the test

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Add travis config, bump Godeps

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Move test setup to another file

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>