Initial notes on documents data structure
More notes on document data
Merge branch 'exploring_doc_data' into import_data
Created iterator to go through SQL statements
Start complete reconstruction of postgresify.py

Severe problems found in "betänkande" documents, e.g. duplicate columns
in INSERT statements. The most reasonable way to correct this seems to be
a real parsing of the SQL (as opposed to just replacing with regexes).

This commit is the first where I import `sqlparse` - seems to work well,
but will require a little more work before we can import "betänkande" docs.

`sqlparse` installation is not added to Vagrant setup yet, so we have to
run  `pip install sqlparse` on the virtual machine to make it work.

To be continued...
Enable handling of some "betänkande" documents

postgresify now uses a mixture of regexes and SQL parsing. It seems that
we can successfully postgresify and execute the SQL in
http://data.riksdagen.se/dataset/dokument/bet-2010-2013.sql.zip with this code.

Added the url above to the set of documents to download and process in  init_db.sh.

Also added the sqlparsing dependency, so it should now be pip installed
with vagrant provision.

Hence, something like the following should work:
	~/app/riksdagen_sql$ bash clear_db.sh
	~/app/riksdagen_sql$ python get_data.py
	~/app/riksdagen_sql$ bash init_db.sh

It's not beautiful, but it works. To be continued...
Merge branch 'import_data' into develop

Conflicts:
	app/riksdagen_sql/postgresify.py - minor conflict in imports section