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