command line options for application

add command line options so you can open a directory or filename.

moved across custom.js so we get ocaml highlighting.

works with latest iocaml.top which accepts connction info via
switches rather than a json file.