Prepare for Lita 4 update

- Fix new Rubocop issues
- Increase test coverage a bit
- Switch to the new Lita 4 way of doing things
Get rid of crazy types case statement

Finally get rid of that terrible type-picking case statement.  Much
cleaner and future proof way of picking a record type now, and has the
benefit of closing out most of the rest of the Rubocop complaints.
Refactor/reduce code duplication

Oh yes, so much nicer now.  Refactors all of the different processing
types into a single function that can handle them all.  Named groups in
regexes are awesome.