simple-markdown: prep towards perseus-independence

Summary:
Adds an explicit license, and handles dependencies/exports
even if `require` doesn't exist

Test plan:
`make test` still works
cross fingers for what happens when `require` doesn't exist :)

Auditors: emily