Added support to adding classes

Finished most server side stuff, still working on client side.