main.html has been split into profile.html and contract.html. More client-server communication is added.