Added database creation stuff for testing.
Created base class for server tests.
Added sample test for index view.
Added basic tests for the rest of index views.
Moved database access parts from data views into separate functions in data module.
Added support for test coverage analysis.
Added tests for simple views in data module.
Added missing argument description in docstring for submit_low_level function.
Moved data-getting functionality out of index view.
Fixed name conflicts.
Moved data-getting functionality out of stats view.
Added simple tests for stats views.
Improved sanity_check_json function.
Removed unused import.
Wrote docstring for _has_key function.
Added test for _has_key function.
Added test for sanity_check_data function.
Added test for clean_metadata function.
Minor code style tweaks.
Merge pull request #56 from tsukanov/testing

Testing and some more refactoring