Fix rewrites and searchbox. Add deployment script