Move common parts to spec_shared.rb
Make fake Rails application for testing
Refactor specs a bit

Move entity_spec to models subfolder
Remove unnecessary spec
Implement cursor pagination helpers methods

Implement #next_cursor_link, #next_cursor_url, #previous_cursor_link
and #previous_cursor_url methods