clean up, fixed trusted html bug for post previews on home page.

Conversion to AngularJS complete