Added history store on server side
Added history loading on client side