Added error-logging to model and view
Changed table names for LogEvent and Error. Pleaase drop tables and syncdb.