Adding Grunt build tasks

For linting the PHP and self checking the Gruntfile and JSON files.
Adding ignore node_modules
Re-ordering phpcs and phpmd
Adding dev requirements for phpmd and phpcs
Minor coding changes based on phpcs suggestions
Changing defaulty standards used for each file