Fix Amazon Linux and CentOS installation issues

- Fix installation issues on Amazon Linux and CentOS 7
-- Add a monetdb.repo for Amazon Linux
- Fix service init issues on Amazon Linux and CentOS 7
-- Use older CentOS 6.5 style service on Amazon Linux
- Further modularize scripts cutting in smaller parts to reduce
duplication