Argument parsing, and executable support and tests

Includes simple passing tests, the exec.js has not been tested in detail yet.