Resolve #62 - NotPermittedInProductionException as well as convenience method

This adds a new convenience method which will throw an exception if the DEBUG
compiler flag is not defined.  It may be used to mark code which is OK in
debugging/testing builds but which should never make it to production.