Started rewrite into plugin- and api-based backend