a scala based identity management system