Fix several selector errors

also fix a generated path error
Emit everything in the right location
Support parsing hakyll-style metadata
more intelligent binding of pages