Style cleanup.
Passing cookiecutter context to hooks using os.environ
force str() before merge context into os.environ
improved interpolation
cleanup tests
fixes python 2.6 compatibility