Spin.js integration for long running REST requests