Allow for params

* Add optimist to allow for port and dir params
Add single file server