Add redhat/centos package support. Update to sonar 4.0.

1. Use RPM for centos/redhat
2. Create initd file when installing zip
3. Update templates to match sonar 4.0
4. Minor bug fixes