add support for triangular indexing in @addConstraint
consolidate code
fixup so tests pass
tweak docs, add inline docs for helper macro functions.
Merge pull request #256 from JuliaOpt/tri-constr

[RFC] Consolidates macro code