Remove check for addon - tern is loaded conditionally
Use getCode method - template is unavailiable
mockEditor function, to ease future method additions
Add getCode method to panel, update panel.editor methods
Add embed to global jsbin object
Merge pull request #1793 from jsbin/fix/tern-v2

Fix/tern v2