Diagnostics

Its about time I actually get diagnostics put into master.
so if these type assertions fail, code will panic. Which means that i can issue a command over the daemon rpc to make the node crash. better to:

```Go
raw, ok := opts["raw"].(bool)
if !ok {
  ...
}
```