Added timeout on rest calls, hardcoded to two seconds

Needed a quick timeout in one of the projects, simply added it hardcoded. Configurable option comes a bit later.