Add extra parameters to histories.update_history() and History.update() .

Add test_update_history to TestGalaxyHistories.py .
Fix some typos.