Update library to conform to the node style guide

This commit updates the libary to conform to the node style guide
defined by felixge/node-style-guide.

https://github.com/felixge/node-style-guide
Move CannedPolicy to a separate file