Add frontend/backend flags to the context

This is to make sure we don't show unpublished material

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>