Fix for 144 - refactor blocks

We use the `JSON.parse(JSON.stringify(foo))` pattern for deep cloning objects in a few places. It works fine right now, but is pretty unsafe when you hit things like dates, regex, etc as it is prone to throwing exceptions. Pulling in something like the [clone](https://github.com/pvorb/node-clone) module might be a good idea.