add type checks to query charmstore, use moose

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
v2.001_1