[RCPUB] Fix a bunch of PHP warnings. Also, add the upgrade page, but it's not fully implemented yet.