Move the resource server into a library.