[ui] Fix bug on login page
[srv] Big refactoring on persistence support & mongo db datasource integration