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.
Merge pull request #4206 from colemanw/console

Fix safety check when using window.console and switch to console.warn for warnings