Added AJAX behaviour to Glossary

Glossary:
Add/Edit/Delete items in Glossary through AJAX.

Cleaned up code.