cleanup, refactoring and first steps/experiments in dynamic loading...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>