Integration, Logout, Routes

Integrated 4nd1's changes into the system architecture
Added logout functionality
Added simple route based forwarding system (prototype)
Simplified DB queries