Fixed issue that would cause a server error when trying to write a
member with an email that already exists
Changed detection for if a language can be deleted to simply call
canDelete() on the language

Fixed duplicate detection when editing languages
Fixed issue where the wrong Folder was being checked when creating a
snippet
Started work on setting up phpunit tests (issue #2)