Merging jberry's https://trac.macports.org/changeset/24832 & https://trac.macports.org/changeset/24843: Store history file in {macports_user_dir}/history.
Merging jberry's https://trac.macports.org/changeset/24832 & https://trac.macports.org/changeset/24843: Store history file in {macports_user_dir}/history.

git-svn-id: dc463f922b716f8a7bf91846309830e794c23801@24880 d073be05-634f-4543-b044-5fe20cf6d1d6

neverpanic/macports-base,danchr/macports-base,danchr/macports-base,macports/macports-base,neverpanic/macports-base,macports/macports-base