Added configuration function to script

- Create user and group
- Setup directories and permissions
- Create default conf files