convert Telegraph and Telegraph.Dashboard to use resting.js