various code consolidations

Each post has one record in the database.

Moved the shared post drawing code for the front page and boards into one script. Fixed bugs on the front page from the post drawing code change.