Added tests for logical operator parsing
Simplify logical expression parsing

Since 'and' and 'or' have the same precedence, it is only important whether
'max_precedence' is infinity(default). Hence, it can be replaced with
a boolean flag.
Merge pull request #78 from mpeterv/fix-logical-precedence

Fix parsing of logical expressions