Remove template, and instead copy Resources.java source file.

Merge in changes to Resource.java and ResourceTest.java from https://github.com/julianhyde/optiq/commit/d35efc5e454059c90d1192b969df0ae4f741e987.
Oops, wrong resource path.