Added ViewContract and contract framework.
Merge pull request #1 from isupeene/view_contract

Added ViewContract and contract framework.