Define commonly used console api in server side rendering context

Browser libraries including reactjs assume the presence of a console and commonly use methods such as `warn` or `info` to notify about api misuse or deprecation.

If the console is not defined in the server side javascript environment, pre rendering throws an `ExecJS::ProgramError` because `console` is not defined.