Moved some in-page css and js to the appropriate files, tweaked button actions.