Add type specifications to the cloudi module and the cloudi_service module, for use with Erlang CloudI services.  Fix emysql crypto hash usage (error is in 1.2.4).  Update edoc documentation.