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

... numericality. Took the opportunity to write some better specs to test validation.