Refactor attester as a module

Make attester as a module that can be used by other node modules and not only a command line tool.

Responsibilities are split in different submodules that communicate through an event bus that allows a greater extensibility.