overriding onBadRequest to add debug logging
more debugging code
implemented/tested versions of context endpoints
completed contextual API, missing only improved refresh algorithm, added
authorization control to contextual api
fixed small bug introduced by previous commit
fixed bugs
unified attribute names for context resourcs
fixed bug