Chrome exteension's manifest file generation, code refactor, code documentation

Bringing in some early code to generate a Chrome exteension's manifest file.
Refactored and documented the PHP code.