Refactored procedural code to object-oriented.

All functions in the functions.inc.php file have been moved to either the User, Post, or Riff objects.
Removed the require_once("functions.php") line because functions is gone.
Fixed bug in User::create()