Continue logging if log rotation fails.

Changes to logRotate() in DailyLogListener and RotateLogListener to try
creating a new file before closing the current one and continue logging
to the current file if rotation fails.
replace for loops with foreach loops where possible
replace indexOf with contains where possible
remove unnecessary boxing in code
remove unnecessary unboxing in code
fix integer overflow bug in constant within ISODate class and test
add out/ dir to git ignore
remove redundant comma
remove redundant type casts
Thank you Graham for your contribution!
Merge pull request #25 from chas66/codeInspections

Code inspections