Ensure that content rules are applied to editables at creation

Also fixed:

 * Correct use of $.merge instead of $.extend
 * Prevent generating broken markup in applyRules()
 * Improve inline documentation