Added centos templates, refactored foreman buildfile into separate ubuntu and centos versions