support specifying class when loading widgets from the client
Merge pull request #214 from ryedin/master

support specifying class when loading widgets from the client