Add support for command line args

This small patch adds support for
`--base=/some/dir`
`--port=1234` and
`--cmode=0755`
Add --config file.json

I moved all the defined require() at the top because i had to use fs :)
Merge pull request #2 from newsocialifecom/patch-1

Add support for command line args