Add Location header.  Pseudocode refactor of postCollection.  Other cleanup.