Initial commit
Store taglist i posts, + minor stuff.
Start TCP-stuff.
Useable as server.
Taglist/postlist really didn't need to be doubly linked.
Sort search-tags by post-count.
Fix sub-searches without matches to not be ignored.

(That is, if a search in progress reaches 0 results before checking all
tags, return empty, not the result of the remaining tags.)
Logging-support. Only dumping for now.
Add something that tries to find similar images.

Just the matching bit here, id-vectors are generated by a separate program,
by scaling a greyscale version of the image to 4x4.
Add -id to pearsonr (To specify and identity that isn't in the DB.)
Return error on unknown tags in search.
More complete logging, support for populating from log.
config.h neede by pearsonr.c added.
Fix log-creation in dump_log to specify mode of file.
Add tag-aliases as well when populating from DB.

Not that all aliases are valid.. The quality of the original danbooru looks
ever poorer.
Add support for exluding tags from results.
Add pearsonr do clean-target.
Add support for printing tag-names and/or tag-IDs in search results.

Currently the tag-ID is just its name, but I intend to make it something
more useful (persistent) later.
Add filetype info, and Fext to return it.

Not all filetypes in the dump are defined, so some posts no longer make it
across from the DB.

Also disable dumping of log-file, it's no longer accurate.
Add proper tag-aliases.

It would probably be good to be able to go tag -> alias-list.

And personal aliases of course, but that can't very well come before some
form of accounts.