Added Ajax calls to server
Added ajax code for working with sessions