PROTON-348: Platform neutral helper functions for examples and tests.

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1503531 13f79535-47bb-0310-9956-ffa450edef68
PROTON-348: Trim empty dir and update license location.

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1503540 13f79535-47bb-0310-9956-ffa450edef68