make resource decorator context aware
update to eaa82e03: initialize klass view with context if factory is given

note that this clashes with the way cornice 'abuses' the factory argument (for acls) so we explicitly check for the presence of acls as well.
Merge remote-tracking branch 'mozilla/master' into 'context-support-for-services'

* mozilla/master: (29 commits)
  Fixing JSON syntax in tutorial example
  Update tutorial.rst
  Fix a typo in the Service docstring
  Rename Request to MockRequest
  Bump version
  populate the CHANGES.txt file
  Overwrite pyramid default exception handling.
  Manually commit configuration changes. Fixes #151.
  Add support for Colander's drop object.
  implement "415 Unsupported Media Type" (validate "Content-Type" request header) on top of Pyramid's predicate system
  Enhance docs for class-level validators / filters.
  Test that the email colander field works.
  Update the sphinx directive documentation.
  Fix py3k compatibility, improve style & comments.
  Allow Colander schemas with sequence fields in querystring
  Remove PasteScript from the Cornice template.
  silence deprecation warnings on py3k: renamed "assertEquals" to "assertEqual"
  use @ryansb link - much better - fixes #139
  moved to a still-existing link
  Fix typo in docstring (list -> tuple)
  ...

Conflicts:
	CHANGES.txt
document the route factory behavior
add test for 3768924e
also test context factory support for services
test wording cosmetics... :)
fix up tests from 609a270f to also work in python 3
Merge remote-tracking branch 'mozilla/master' into 'context-support-for-services'

* mozilla/master:
  test wording cosmetics... :)
  also test context factory support for services
  add test for 3768924e
  document the route factory behavior
  update to eaa82e03: initialize klass view with context if factory is given
  make resource decorator context aware
  document how to use dynamic schemas
  revert 04242358 as otherwise passing `schema=None` (in `args`) would shadow any schema on the object
  cosmetics: only call `validate_colander_schema` in one place
  add test for e9cc04a7b0b5e0851b20cec78429e3f9db452255
  add support for dynamic validation schemas for resources: using a property the schema can now be determined depending on the view context or request, for example

Conflicts:
	CHANGES.txt
	cornice/tests/test_pyramidhook.py
	cornice/tests/test_resource.py
allow for explicitly named services created for resources
Fix CORS support for the request headers.

Access-Control-Request-Headers fields can contain any number of spaces, this wasn't done properly until now.

The specification of field-names say (http://tools.ietf.org/html/rfc2616#section-4.2)

   message-header = field-name ":" [ field-value ]
   field-name     = token
   field-value    = *( field-content | LWS )
   field-content  = <the OCTETs making up the field-value
                    and consisting of either *TEXT or combinations
                    of token, separators, and quoted-string>
make nosetest after buildout work
Merge pull request #172 from matleh/nosetest

make nosetest after buildout work
Merge pull request #171 from matleh/master

use error_handler from Service class (fixes #170)
Merge pull request #167 from mozilla-services/fix-cors-headers

Fix CORS support for the request headers.
Merge pull request #166 from pyfidelity/explicit-service-name-for-resources

allow explicit service name for resources
raise exceptions as-is if they are not subclasses of HTTPException
Minor formatting and codebase cleaning.