* generateAppId should take param in favor of local state
* add hint to generatePublicKey method about callback parameter
Merge pull request #29 from joscha/generateAppId-fixes

generatePublicKey promise and generateAppId state