Functional spec:
https://docs.google.com/a/10gen.com/document/d/1xqSHCigwhvXolB37wet5iUDJQZyPyUTV6QZZiYRT7aI/edit?usp=sharing