Moved set_global_connection call so that it is always called early on in the session startup.
tests: /modules/api/inventory CRUD tests
Fix #6: Delete /modules/api/inventory/id fails

- Changed the post delete check to use the given $id from the url
  rather than the stock_id from the request body (which is likely
  not present).
Merge pull request #7 from cambell-prince/feature/Inventory

feature/inventory Inventory CRUD tests
Thanks Again to Cambell-Prince!