Remove unused code
Use module.exports
Remove more unused code
Remove more unused code, broken out into other projects