Moved url function to server package.