js: reactivate timeout on connection
- A timeout of 5 seconds is activated for functions that do not require a pinentry. This definition is written to src/permittedOperations.js
- testapplication.js now alerts the proper error codes and messages.
- src/Errors.js fixed two typos in error handling