Added notifications to Layer and AnimationFrame

Closes #26. Layer has beginPainting and endPainting and also signals
changes with contentsChanged. AnimationFrame also emits contentsChanged
when any of it’s layers does.