django 1.6 compatibility

Hi,

I added some tweaks to make this work under django 1.6
1.6. does not pickle objects anymore by default, so I stored the users's id in the session not the whole user object.