refactor commands
Merge pull request #2 from thomaspeklak/master

Refactor commands.js
Reformat commands in a commonly accepted coding style
Reformat to a commonly accepted coding style
Add support to pass command line switches to commands
Refactor require handling
Remove unused require statements