lib: refactor into activities.

  our objective should be to keep root as clean as possible
  and properly modularise all source
lib: add some empty stubs