Add $interval param to cleanup() method

This makes it possible to call cleanup with custom interval, even from
outside module code. Related to planned updates for ProcessLoginHistory.

Default behavior stays unchanged, meaning that module config setting
data_max_age is still used as a default if no interval was provided.
Minor cleanup for various parts of code
Housekeeping and fix for cleanup() param name
Add separate renderSelect method
Bump version number to 1.0.5