Created theme functions class

A more OO approach to theme development.
Added related posts as a static function