restructure things to act as a lib w/ a cmd
Merge pull request #4 from canaryio/cmd

restructure things to act as a lib w/ a cmd