Added possibility to use different database (storage) backends. Currently
supported: flatfiles and mysql. Fixes#2.
Added database shutdown call. This call will properly shutdown database
connections (in case of RDBMS) or flush pastes index cache on disk (in
case of flatfiles).
De-hardcoded pagination count. Fixes#12.