User management and authentication module for domojs