Different rights management backends

Initially only one backend - regular expressions based
Allow attach custom auth handler
Allow attach custom storage backend
Simplified tests structure
Allow attach custom rights backend, small fix in default config file