Added JSON support to LibClasses and added email views