Update and rename neap to pager.py

First step of refactoring: converting neap main into separate lib. This is not intended to run yet until refactoring steps are done.