Add type specs.

Copied the type specs from https://github.com/basho/riak_control/pull/73/ 

I've only spec'd the exported functions.