Refactored some common whitespace-parsing code in scanning both scalars. Implemented the flow collection tokens.
Split off the specific regular expressions, and the specialized token-scanning functions, into their own files.