refactor components #624

added active toggling, readonly support
reworked new component js to use templating from comonets.php, enabled
name toggling for new components so the work exactly like existing ones
codemirror readonly support