Use lrutils

uses lrutils for Audit, errorhandling and after_request headers. Also fixed a small bug in master for user creation.