Markets are about half done.

Various bugs are fixed, but at least one crash bug (intermittent on shutdown) that I should have fixed on the next push. Also market screen is about half done.
Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>