implemented get(Foreign)History
fixed getStateHistory
Merge pull request #83 from hobbyquaker/master

history