Refactor procedural style to object-oriented, refs #3

The functions.inc.php file has been completely removed, and all of its former functions can be found as a function of the User, Post, or Riff objects.