polymer REST to records abstraction