Api refactor

The api now uses net/http and https://github.com/bmizerany/pat as a pattern muxer.

The syntax for robot and device commands is now
```
AddCommand("commandName", func(params map[string]interface{}) interface{} {}) 
```