Added title functions in new common.php model.

This update is small but a necessary step in moving to a more MVC-like
structure.  I am trying to clean up the code and organize it into
something easier to navigate.
More MVC structure fixes.

Just adding some additional tiny fixes to various files to make it more
reliant on a model-view structure.  I will work on this more tomorrow
and hopefully finish the changes so we can approach the first functional
version.