Hashing API

Here is the Hashing API I have written as part of my GSoC project. Also added a  check of policy files for JCE in JCELoader. 
Catching Throwable is necessary when the alternative is catastrophe - total failure to startup in this case.