Added edit quiz functionality. Also fixed some bugs. Some tests regarding edit are missing..