rest-api: outsource init to lib/app_bootstrap.php