Implement console

Implements command line argument parser. Still very rudimentary -- e.g. no options support.