ServerResponse not setting entityClass

The constructor of ServerResponse that takes an entity as an argument
doesn't set the entityClass.
Merge pull request #282 from gbervik/master

ServerResponse not setting entityClass