Allow get_all method to be stopped.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
Fix unittests for new api, and add tests for client.py

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>