Moved and cleaned the framework traits into their

own isolated package. Allows easier reuse between projects.
Add an example service.
Small fixes.