Move classes into separate files for lazy loading.

Added a set autoloader call to index.php which tells
f3 where to look for class definitions so they can be
loaded as needed.