added post and get functions for account rest api
refactored name of entity to entityName
changed doctrine entity config from yml to xml