Add runtime dependency on javassist
Fix CurrentUserBean

@Delegate doesn't play well with @Lazy.
Fix tests
Enable restrictions on queries