Turn the anonymousId calss into an osgi service

Signed-off-by: Yasser Aziza <yasser.aziza@gmail.com>