Session handling optimized
Basic Auth implemented