Use OSGi gradle plugin
Add note about server cert switch to README.md