Inspired in kaminari and will_paginate but more minimalistic.