move tests to separate package
add new db methods Security and SetSecurity
refactor responseRev
add more error convenience functions