set the stage for future erlmode improvements

This pull request is mostly about testing the waters around a derived mode for erlmode. See the second patch in this series.