Made backed working with session support. Added frontend code.