add 'history' command
add man page for `wp shell`
compute the history file path at the beginning

this avoids problems if the user calls chdir()
Merge pull request #373 from wp-cli/shell-history

shell: retrieve history