Implemented primitive NPC AI
Implemented user authorization mechanism