Many updates

Redesigned the logic of the page
Converted most of the javascript to php
Added twitter Bootstrap.