Rewriting permission system to use UUIDs and Ranks

As outlined in the forum http://forum.mc-server.org/showthread.php?tid=1540 , this PR changes the permission system to use UUIDs instead of playernames, and at the same time is refactored to use SQLite for the storage, and an entire new set of API for management.

Do not merge yet, this is work in progress, PR-ed for discussion purposes.
SQLite doesn't care about types much, you can store just about any datatype in any column. It has some little preferences ("affinity"). By default the fields tend to be of "string" type, which suits us for most.