Major code overhaul

Merge this pull request and update your website. There have been a lot of code changes and a lot of much needed code clean up.

Edit: The spinner is more accurate this time around but not 100% accurate. Still working on it.