added rest suppport and new method that returns poll configuration according to account id