Feature lib folder

Changed the `app` module to `lib`.

It's a library after all.

Perhaps only merge this after other pull requests are merged.

@Nixweerd  @TheN1ckname