remove duplicates from users & profiles array for push notifications and more

.... add new CustomHttpCode for push notifications and refactor test for it