Renamed the sub-key-generate file
Added apptoken api and corrected getApplicationKey method invocation in key.js
Added refresh token