Update TODO.
Add test directory and first simple test.
Refactor more regexes out into variables.