Bug fix: elem not wrapped in jQuery object
Bump version number for release
Fixed up several tests
Organise code into common/client folders