CRM-15352 Add CRM.console wrapper function

Not all browsers (ahem, IE) support the js console and will crash if it doesn't exist.
CRM.console adds a safe way to access console methods.