FS#198 - Export To CSV - Blank Genre

Clean up Catalog->export.  Genre doesn't exist any more.
Move session extension outside the auth block in init.php

This might help ensure that we're always extending the session when we
should.
Minor clean up of vauth::session_extend
Explicitly load vauth in init.php

As there are some code paths that do session manipulation without any
calls to vauth first, relying on autoload may result in our custom
session handler not being used.
Allow multiple valid forms of the same type

Use the SID for the primary key, instead of the non-unique form name.
Also add some debugging to the form functions in Core.
Clean up Config::set and Config::set_by_array

Boolean parameters should be boolean.
Clean up uses of Config::set and Config::set_by_array

Consistently pass in a boolean instead of a string or an int for the
clobber flag.
Use '$a ?: $b' instead of '$a ? $a : $b' in vainfo

Now that we require PHP 5.3, we can use the more compact format.
Rework CLI installation script

Make it actually work, use getopt for option parsing, rename it in
line with the other CLI tools, and make sure the return value is
meaningful.
Use a flag to determine whether an outdated database is OK

This matches the handling of NO_SESSION and gives us some needed leeway
for the CLI tools.
Add CLI tool for running database updates
Add CLI tool for adding user accounts
Clean JSON output of user-controlled strings

JSON has some strict rules about what can be escaped, and we should have
been scrubbing to entities all along.
Update changelog
Support named access levels in add_user CLI tool
Refactor similar init code into new init-tiny.php

Several places were doing operations that were practically the same
(loading core libraries and setting some variables), with varying
levels of success in remembering to do the right things in the right
order. Making a separate minimal init.php that doesn't worry about
some of the sanity checks and session bumpf makes this cleaner and
easier to maintain.
Remove unused mysql_* values
Replace errant direct mysql call with Dba::write
Restore missing includes

Slightly overzealous in removing things
Rename lib/install.php to lib/install.lib.php