Snippet feature

Cleaned the JS & implemented the snippet feature.
Also enabled tabs for moderator interface to avoid conflicts between tabs and spaces in pre loaded snippet & the student's code.