Code updates

Applied some code updates over the weekend. If they worked the way they are supposed to work, then most people should not really notice any difference to the site. Just the usual minor bug fixes, and security patches.