added create_function() to register function in sqlite
some cosmetic changes: adding quotes around dbname in error messages.
Add checking of database format. PDO is only sqlite3 and origin sqlite is only sqlite2.
Fix create_function(). Remove redundant code.
Added checks for false result pointers before fetching
Rewrited fetchAll()s to fetch().
PDO sqlite uses and look for database file with extension .sqlite3.
This instead of .sqlite. ie. to prevent autoupgrades. Add lookup for sqlite2 and sqlite3 dbs to admin.
Added checks for false result variable.
Fix spell errors. Little code clean up.
Added README
Merge remote-tracking branch 'upstream/pdo' into pdo

Conflicts:
	helper.php
add error message to chech in query().
This was only difference left between stretchyboy fork and this fork
Added info about manual upgrade
add $assoc parameter to res2arr

needed for datatemplate as it uses sqlite_fetch_all($res, SQLITE_NUM);
internally and it's easier to port datatemplate plugin if sqlite plugin
provided similar result

see comments from pull #2
actually use $mode in res2arr
Merge pull request #1 from glensc/pdo-sqlite-num

Pdo sqlite num
Refactoring of code. Introduces Adapter object, needs implemention for each sqlite backend that's desired
Code reformating of helper.php
dumpDatabase() removed, later more
add  parameter to res2arr again
Add check whether Adapter object exists in init().
When PHP extension of sqlite or PDO are absent, there isn't a Adapter too.
(Note: if init() returns false, no other functions of sqlite should be called, so one should check result of init(). )