create synchronous version of createResource on Server. fix dynamic resource creation to use mongoose methods