Rework functionality

- add agent service
- add test kitchen testing
- refactor to use standard postgresql cookbook
Fix file ownership