Implementing a generic framework for adding modules into MATA

Work in progress, still a few bugs to resolve

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>