Move contrib keys editing to edit page.
Add some more test cases.