Implementation of the new source tree layout

First set of changes incorporating new structure of source tree as planned in #125
It also applies some of changes planned as part of buried headers feature #25

This is work in progress, so I'd like to call for review and testing, before we can merge it into develop branch.