Updated FileSystem and Sqlite handlers to more accurately check file permissions and report on error states.

Fixed the Apc driver to correctly report the handler as unavailable when running in CLI environment with apc.enable_cli = Off.
Merge pull request #73 from jhallbachner/filechecks

Fixed file checks in FileSystem and Sqlite handlers.