Added testing functionality for all resources.

Also added a CronController to be able to easily execute these during
development/testing.