HG-102: Added basic context structure

This is work in progress... 
Aaaand unfortunately  PHP >= 5.5.0 :(