replace body tags with div

Fix bug #14.  Replace body tags with div tags now.

Merging in all outstanding fixes to prepare for some more architectural changes.