Define functions for most of the operators

These can be used in addition to the infix operator support in the
compiler, e.g. (apply + '(1 2 3))
Minor refactoring