Round the note size up correctly.

ELF notes are 4-byte aligned, this fixes the size, which may not be a
multiple of 4, to round them up correctly. This stops pkg crashing on
armeb.
More speed up for pkg update

During mass insert only create indexes after the insert
Add entries to the fts table after the mass insert as well
Disable foreign_keys
Using of zero key for siphash is a bad idea.
Fix hang up in integrity check.
UID -> name for conflicts paths.
Avoid endless packages reloading.
Print failed SAT rules.
Human readable description of SAT rules.
Fix siphash key for Cuckoo.
Remove dead code
Use pkg_printf where possible
Fix plist test
Remove useless code
Make struct pkg a proper structure
Adapt pkg_get
Adapt pkg_set
Remove dead code
Finish adapting pkg_get
Adapt pkg_is_valid
Finish converting struct pkg into a proper structure