Recent changes: unit tests, meilib.js to deal with rich content