moves browserHasCanvasSupport onto the global namespace. adds browserHasSVGSupport.
fixes lint issues
bugfix in raphael labeler
optimises canvas code