added header file for json; made some changes to session model so it better represents its intended purpose