Fixing up warnings.
Fixing up access to admin page.
Adding ability to add metadata publishers manually.
Fixing npe.
Fixing test.