Adding first implementation of boolean query parser.
quick refactor before going on.