BK-1263 Roles support inside of Booktype

New Roles functionality for Booktype. Models and some utility functions. Also some unittests for those modules.