Logical operations

Adds and/or functions.

These are convenient, but immediately plough headlong into #36.