Node access records revamped

Node access records have been revamped to support much more generalized
permission handling.
Node access hook implementation altered

A better version of node access hook implementation have been created to
support new permission settings.