Refactor of FlowdockNotifier to make it more testable. Added some tests for FlowdockNotifier.