Move most of the main program to newfol.main.

There are a few peculiarities of the main program that need to stay in the
newfol script.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Canonicalize transaction types.

Now, if the type "hash" and a more specific type (e.g. "sha256") are
present, the more specific type will remain and the generic type will be
removed.  This allows creating databases that can be imported by earlier
versions of newfol.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Remove unused class.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Make ListView self-contained.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Merge branch 'master' into peter

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>

Conflicts:
	newfol
Remove unused variable.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Merge branch 'master' into peter

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>

Conflicts:
	lib/newfol/main.py