Added further validation to per_page field of configs to ensure positive...

... numericality. Took the opportunity to write some better specs to test validation.

[OP package](https://www.openproject.org/work_packages/4157)