Updated mysql auth to use PHPass
Updated session / cookie support