Refactor 11 14

This refactor brings regex queries, collection by name and tests that actually test things.
@sh3nan1gans is that what the JavaScript SDK does?