Added a "now playing" function

This function allows you to check whether or not you're playing a game
inside of it's data. This data is also shown on the backlog front page.
I also fixed multiple PHP errors that were being reported on my testing
server.