Define main for require

http://nodejs.org/api/modules.html#modules_folders_as_modules
Merge pull request #1 from rtgibbons/master

Define main for require