Tests and rake tasks for monthly count calculations

Moving monthly_countable module out of lib/concerns/ because that didn't play well with autotest.