added more api docs about render context and context loss (refs #337)