Working on profiling
Made it so buffers are cleaned out
Fixed getOutContent call. Fixed encoding detection.
Added getEnvironment and getEnvironments template helpers
Removed profiling until it matures a bit more.
Merged in dev-profile