Moved all commands code into functions
Add local vars
Add cat command
Support for greadlink on OSX
Add dynamic location for dropbox uploader