Huge refactorization, added installer

Signed-off-by: Fran Diéguez <fran.dieguez@mabishu.com>