Refactor expandInstanceRangeLocked

Split into getEvents to perform database lookup and
performInstanceExpansion to do the actual instance expansion.  Remove some
dead code.  Clean up try/catch so an error will just affect the specific
bad event.
1 file changed