First pass at coding standards cleanup (and a few bug fixes) in /helpers folder for theme engine.