Remove obsolte code
Implement register module using promises