Allow accessing app object in views

Signed-off-by: Ramnique Singh <mail@ramniquesingh.name>