Add a basic model layer (doc-lib)
Fix crash in Editor::drawOneSpriteUnclippedRect() (issue 361)

We've to catch std::bad_alloc exceptions.