Move CSS from index.html to external file.
Condense canvas size determination.
Merge pull request #1 from dracoling/frontend

Frontend changes