Move application logic to lib, and namespace everything using the
original repo name