formalize openmrs-core coding rules and style

Thanks for doing this @teleivo!

I just make some comments in on alerts and the rules themselves in another thread: