Two types of log templates.

I added a option to select a template and I added a new template too.

You can use it with new template with parameter <b>LOG_TEMPLATE_NEW</b>
```
mysql_log(LOG_ALL, LOG_TYPE_HTML, LOG_TEMPLATE_NEW);
```

or with the old template with parameter <b>LOG_TEMPLATE_OLD</b>
```
mysql_log(LOG_ALL, LOG_TYPE_HTML, LOG_TEMPLATE_OLD);
```
The new log template contain a sidebar with info about the log, if there are errors or warnings, number for specific messages will increase. 

Default is the old template.

![log mysql](https://cloud.githubusercontent.com/assets/3403191/4308515/8ab6aa3e-3e93-11e4-84b8-7d6d5fbbe810.png)

![log mysql 2](https://cloud.githubusercontent.com/assets/3403191/4308514/8ab4f5ea-3e93-11e4-829d-fadb510ca70e.png)

ftell will return -1 in case of the file size being over 2GB since it's a signed int.