* lay groundwork for application serializer to setup capabilities relationships * add api path util and tests, and attach-capabilites fn * make attach-capabilities work with array responses, add tests