Auto rapp installation

This PR enables the automatic installation of rapps. It already includes the change of #196. So that PR should be merged first.