More work on theme compatibility and the default template output.  Added a default stylesheet for non-compatible themes.  Added a few more template functions.