WIP: Use regex to unfold arguments.

Let me know what you think of using regex to manage folded arguments. This is still a work in progress, it misses unit tests for the new functions and classes.