[GSoC 2022] Merge work done

It merges the result of the work from GSoC 2022:

  • Refactor Rs client to be mockable.
  • Migrate to null safety
  • Minor bugfixing

Merge request reports