port to omd

now uses omd.

commits got a bit screwed up i'm afraid so there's some of my site in there too (`/site`).

i should probably have rebased this against my `lib` branch... :(