Added signApiMethod

Split the callApiMethod into another method named signApiMethod. This
makes it possible for users of the library to create signed api calls
that can be returned to clients (web browsers) or called outside of the
library at a later time in processing.