update display set_caption/get_caption to access canvas element id
add display.get_active method
restructure event handler to isolate from userevent and jevent objects