Enabled support for republish at server publish level. Fixed junits
accordingly.