add key support, refactor code
Merge pull request #20 from CirrusMio/ains_key_support

Command line client key and config file support