Fix some static errors and remove unused modules
Integrate refactored registration.
Refactor packages and modules and fix imports. Remove duplicate constants and put them in classes.
Merge branch 'dev' of github.com:dhadfieldmenell/lfd into dev