Move server part from SweetGallery repository