mdengine.js moved to lib folder

As an utility module, I've decided to have it in a lib folder.