Initial commit. Import existing work.

This is an import from the latest rejit code.
Work actually started around November 2012. The local git repository I have used
until now is to messy to push.