scala version of UID service which retrives an unique id from twitter's snowflake server