Add command line parsing and url requests now work.

Output is json to stdout.