Adding support for the "storeByForeignSource" feature of OpenNMS

- Accepting arguments "--foreignsource" and "--foreignid" in
  ResourceQuery.java and ResourceQueryCommandParser.java, get and
  set functions
- If "storeByForeignSource" is not enabled the constructBasePath()
  function returns the same as before (for compatibility reasons)
  in ResourceQuery.java
- If "storeByForeignSource" is enabled the function
  getNodeLevelResourceDirectory from the JRobinDirectoryUtil class
  is called to return the node level resource directory. The
  resource name is then appended to it in ResourceQuery.java

The contribution is made strictly by observation, I am not in anyway experiencing problems based on the storeByForeignSource functionality with Jasper reports. 

Contribution Agreement already submitted