Refactor ajax request and proc+rake files to remove rspec