Handling of special cases for inventories

- Don't let a user take an inventory twice
- Don't let a user view results for an inventory they haven't submitted
- "Take" and "View results" links are only visible in the inventories
  table when relevant
- Exception handling for nonexistant and nonnumeric inventory ID's