Added setBaseResource() method missing from 0.7

`setBaseResource()` existed in DW 0.6.2 but was missing in 0.7.0.  Fixes #749 
@joschi thanks for the feedback.  I added some javadocs.