changes I had to make to get things working

Some of the permission changes may be unnecessary, but the module install scripts all had errors, which meant I couldn't successfully run 'sudo /bin/bash -c "$(curl -s http://example.com/index.php?/install)" 

Feel free to look through the changes (some are cosmetic, but please carefully at the ones containing '/' removals).