implemented authorization control with deadbolt, improved some apis, cleaned some code