added little example on how to create an environment from python
Added tests for Environment() to be changed to ApiKeyAuthentication and DjangoAuthorization

    - So far the API did not require any authentication and did not support any
      authorization. Starting with the simple Environment() model that will be
      changed by the next commit. Here are the supporting tests. They can be
      cleaned up in the future a little.
    - Some tests were copied from the django-tastypie test suite. That is not
      to check upon tastypie but to verify that tastypie is used correctly in
      codespeed.

Change-Id: I70f083e1aa723b69c32a05ba2b8187fed2b5ebb8
Changed UserResource and EnvironmentResource to ApiAuthtentication and DjangoAuthorisation

    - The UserResource and EnvironmentResource are authenticated by the api key
      generated at user creation. Key handling is described in the Tastypie docu.
    - Both Resources are authorized via Django (E. g. changeable in the Admin).
    - For now even GET requests to the API have to be authenticated. That could
      be relaxed in the future.

Change-Id: Ica28762aeff9cdde3a8099bdd6098ccd191c416c
added a few more Middleware classes

    - Even if not required some additional Middleware classes are added to
      ensure compatibility.

Change-Id: I91119d5e6e011f351ffde7bd1380e4e36af5ee98
add tests for Project() authentication

    - Project() will use MultiAuthentication(ApiKeyAuthentication(), Authentication())
      Thus, only GET requests will not need authentication.
    - Move user setup to generic FixtureTestCase class. That is common to
      all TestCases

Change-Id: I5893faa293f32ab1c07a6523a951879933a60560
add MultiAuthentication(ApiKeyAuthentication(), Authentication()) to Project()

    - now the ProjectResource is authenticated by an api key for everything but
      GET requests.

Change-Id: Ie238744bee0e44780d2f9dacc72e5fe0f708b7bc
added tests for BranchResource authtentication and authorization

Change-Id: I7b286fc4dc3b0a6e80b441cd085b15daf79893a0
added BranchResource authentication and authorization

Change-Id: I94242079ce6f140d6b02684cd4150b35acaec06e
added tests for RevisionResource authentication and authorization

Change-Id: I95110d4e7f613d5eebc0d1ee072fdd585936bd21
added RevisionResource authentication and authorization

Change-Id: I693923c1ed5305b20075aa1591938c5cc0cf41cc
added tests for ExecutableResource authentication and authorization

Change-Id: I8c870d82fba103506a212bab013910d19e30f4b9
added tests for BenchmarkResource authentication and authorization

Change-Id: I2c63ed76070431b6737ff55aaafdc9bfbab6669d
added BenchmarkResource authentication and authorization

Change-Id: I7174ede3ee51270f9b1b75b8b9fde9431c3e6657
added tests for ReportResource authentication and authorization

Change-Id: Iefc4c8b344ff984f19fd4479776aaaa6f7ae0291
added ReportResource authentication and authorization

Change-Id: I897e7db9e0ad283cf7b93a68ed8f5b6ef8e26d93
changed to Multiauth for Environment, changed authentication/authorisation for ResultBundleResource

    - Environment now has the same Authentication/Authorization as all other ModelResources
    - Added same Authentication and Authorization to ResultBundleResource. Warning:
      Authorisation is not fully implemented yet! The old test will still pass.

Change-Id: I2eb663296be172924c354061e80ac24841f716b2
few clean ups

Change-Id: I46fd006147f45f9ba30b116cfaae60339a43ed31
Changed ResultBundleResult Djangoauthorization to models.Result, some clean ups

    - for ResultBundle add, update, delete the Django access rights of the
      Result model is used
    - commented out some stuff that will be required maybe in future features

Change-Id: If38a5230bf04137f823e8d7884fa29d41ea202ae
Fixed tests to check if authentication and authorization for ResultBundleResource are correct

    - Note, the ResultBundle and ResultBundleResource will be re-written
      to better match tastypie soon. For now it is possible to upload
      data via authentication and authorization.

Change-Id: If112476f4311358b56e3c7378565e910b9304db2
Improved docstrings and minor code cleanups

Change-Id: I4268567cf26ff62e5659950485ff883b1dcc1f84