Improved byddy.core.hash interface.

Make api more consistent with rest buddy api.