added pagination, regexp, tests for API search methods, fixes #435, #576, #677