Better command line parsing, added example.

* Removed -index option.

* All arguments are now treated as an index.

* Added '-server' option to control if HTTP server is started.

* Added '-output'/'-o' to control where output is placed and server public
directory.
Added MIT license.