Made restriction of retention_period values configurable.
Cleanup imports.
Merge pull request #149 from 4teamwork/pg_configurable_retention_period

Made restriction of retention_period values configurable.