Use config DSL
Support partial matches in package search

First step of issue #15.