Refactored code a bit.
Parser now also adds logfile records to database.
Store id of logfile for each line record.
Added beginning of Rails web app.