make Perl::Critic optional for testing, but install it for Travis-CI
use the local directory for database file
swicth from Test::WWW::Mechanize to ::PSGI