Add tests for Context and View commit/archive flags

This also includes creates a new BaseTestCase class that all the form
tests extend. They all had shared code in their setUp() methods so they
could safely be combined.
Add tests for the force_count kwarg
Add context and view form tests with json
Add separate update flags for context and view

While using one flag, the single flag will be updated in
clean_context_json or clean_view_json(whichever happens to be called
first) and then this flag will be used in the branch in the other. This
is not the desired behavior. Each clean_*_json method should make up its
own mind whether to update the count and not be affected by the behavior
of the other.
Add full tests for QueryForm
Split the query count into distinct_count and record_count

See https://github.com/cbmi/avocado/issues/129 for more info on the
source of this change.
Merge pull request #79 from cbmi/form-tests

Fix problems in QueryForm and add full tests for forms.py