Fix project.clear() so it removes all layers properly.
Merge pull request #241 from chrisbarmonde/master

Fix project.clear()