Fix Travis testing

Don't install dev dependencies on Travis
Remove `getGenerator` utility function
Allow `characterClassEscape` in `characterClass`

Closes #1.