Enhanced command line, unix socket & rake tasks

I tend to move a good deal of things to constants, including regex... only a suggestion :smile: