Session and authentication handling using MongoDB for Tornado