Added optional trade previews

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