Minor changes on preview and edit actions

Avoiding nested iframes on prevdoc action, deleting debug messages and allowing PHP edition on codemirror.