Merge pull request #1016 from jasonLaster/region-stuff

Cleanup region code
add behaviors
doc wip wip
Refactor behaviors to use partially applied functions