Merge pull request #139 from maxfierke/master

Fix `composer --dev install` on PHP 5.3
Changed truncate query into delete from for sqlite compatibility
Insert identical snippets only once. Fixes #133.
When 'magically selecting' a template use 'singular slug + .twig' as an option.
Reset tables for sqlite better
Embarrasing typo fixed
Merge pull request #140 from jadwigo/master

changed query for clearing log
If an SQLite database exists, but is not writable, return a lowLevelError

Also, the check for database directory existence and writablity can be accomplished with is_writable which returns TRUE if present AND writable. Addresses issue #141.

Signed-off-by: Max Fierke <max@maxfierke.com>