Change app_refs method pattern matcher, add documents route to display document details