added static constructor for directly creating an entity from a request
move constructor methods to the top
Merge pull request #13 from owncloud/entity-request

added static constructor for directly creating an entity from a request