Added templates.  Moved action hooks to admin and public appropriately.  html scrubbing