Refactor 'chain' to 'imports'.  Fix issue with regex capture groups.
Add support for assigning variables.
Fix variable assignment to enforce variable naming conventions.
I hope these commits are okay, I'm really tired.
Cleanup and tweaks.