Added dict and set emulation support
Refactored auth to suck 100% less