Implement state change API

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Use const types everywhere

Somehow I was previously convinced that the first type annotation propagated to
all other types in the const() declaration. That's not true, so we should
annotate everything (and fix the compiler errors as they arise) so that only
the Right types can be used.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Remove dead API endpoints

These are unused now that we have the state change API.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Better help message for state setting commands

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #88 from tych0/state-api

State api
Update readme for new trust mechnisms

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Add networks rest endpoint

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>