Added optional trade previews

Also moved the `getMarketPrices` function. It can now be isolated to any element (not just backpack), and really didn't belong in `inventory.js`