TRUNK-4254 : Allow configurable number of days after which visit can be auto closed

I have changed AutoCloseVisitsTask to read a global property which indicates minimum number of visit days allowed before auto closing visit. The default value will be 0, so it continues to work the same way it is now.