Add back the magically disappearing price history code

Somewhere along the way, it magically vanished. Now it's been not-so-
Add median feed values to price histories
Mother of all merge conflicts

Conflicts:
	libraries/blockchain/chain_database.cpp
Merge branch 'develop' of github.com:BitShares/bitshares_toolkit into develop