web: use pat instead of martini / implements /api/nodes and /api/nodes/:id endpoints / go fmt
database: set a default node name / go fmt