Some significant refactoring

Re-did some of the CSS, fixed a lot of JavaScript, formatting and so on.
Changed deploy to use GitHub repo