Added customization support.
Switched tests to Mocha with Travis hook.
Closes #2.