Add rubymine dir .idea to .gitignore
Sort alphabetically
Update locked versions
Sort events before creating them
Refactor stateful_events to allow event_times to be defined as a hash with times, refs #1