Profiles implementation

Injected logging where neccessary
regestration api implementation
invite api implementation