Add hiera support, make stdlib only requirement

Hi,

The PR add hiera support, allowing the following in hiera:

```yaml
tcpwrappers::allow:
  'sshd_all':
    client: 'ALL'
    daemon: 'sshd'
```

It also replaces sum() with flatten() do avoid problems with missing sum()