Fixed reading the wrong key from database when getting output log.

Added .idea to gitignore to support PHPStorm
Fixed reading the wrong key from database when getting output log
Added output log to html renderer for browser output