Improve admin interface tests

Changes:
- Use WebTest
- Use reverse URLs instead of hardcoded URLs
Add test for viewing/saving history form

Fixes gh-20.
Add test for ForeignKey field