check for Hash in addition to OrderedHash, which seems to break in Rails 4, for total_count
Add next_page and prev_page methods

closes #237
Merge pull request #369 from aew/master

Fix total_count to work for Rails 4 (Ruby 2)
Add #out_of_range? method

closes #306, and closes #366
Revert "Merge pull request #320 from bricker/fix_nil_math_errors"

This reverts commit d63ac017a9d115879e3c68684911cc7dea86c025, reversing
changes made to f77fae765ac75ce5ac95f47a7b8d70d0653ecf26.

Conflicts:

	lib/kaminari/models/page_scope_methods.rb
	spec/models/active_record/scopes_spec.rb
Revert "Merge pull request #304 from bricker88/nil_for_per"

This reverts commit 38fb04fab3e6c094a2325ce5e9d9d34051095c07, reversing
changes made to 992fb9f935ca6290d4abf931e935cab4e1fd5b5a.

Conflicts:

	README.rdoc
	spec/models/active_record/scopes_spec.rb
Use default_per_page value when per(nil)

closes #356
[rails4] "config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:"
Test against Rails 4
We support Rails :four:
:scissors:
Fix a bug that PaginatableArray#total_pages returns the wrong value

closes #416
Make num_pages available

It returns the same value as total_pages and you can still use num_pages anywhere in the view.
closes #287, closes #284
use html_safe instead of raw amatsuda/kaminari#73
Merge pull request #418 from zzak/kaminari_73

use html_safe instead of raw
Eliminate ambiguity
An Engine can include app/helpers, so let's move the helpers there

however, leaving the original module as is for now, for Sinatra compatibility...