Update docs for Thread class
Fix bug with history for search in messages
Fix bug with filtration at threads history page
Update select_with_pagintation function logic

It always create $page['pagination.items'] as array