Update SWORD views & helpers for models changes

Update service document and GET/POST to collections, including all
dependent functions, for the Package and Locations changes.  Minor
refactoring, notably moving docstrings inside functions.