cherry-pick umask fixes from develop

This is a slight modification of 1aaf8d58, I had to remove some changes related
to using GPG for OSSEC email alerts (which are not hotfix).
added write perm in apparmor profiles for error.log~ and access.log~
adding a travis yaml file for ci
tweak travis.yml to work on master

master is still using a single config file instead of a module