Lots of documentation updates, plus split out potlatch libraries in to lib