Add type specs.

As discussed [here](https://github.com/basho/riak_control/pull/68), I've re-opened as a pull request against jgn-new-ui branch.

Apologies for the confusion.