Implement REST API pagination (#409)

See specifications at:
http://wiki.confine-project.eu/arch:rest-api#pagination
Validate user input: page and per_page.
Add Pagination unit tests.
Extend REST API pagination & filtering tests.
Merge branch 'feature409'

Conflicts:
	controller/__init__.py