Redesign security functionality according to changes in OrientDB Issue #13