Add documentation/some refactoring to RenPyScanner

- Generalized any methods involving whitespace to take a list of tokens
  instead