Cleanup and add Composer support

Normalize whitespace, coding conventions, some comment forming, and some directory and file names.
Add composer.json and make ready for inclusion in Packagist.
Add back older stripSlashes which was lost in namespace migration.