pkgdb-web: Tiny refactor
Web apps unit tests: Work in progress.