Add API server for dashboard app

@titanous 

Dependencies still need adding to the Godeps
This should be a global var so that connections may be reused.