Include library basename in compiled templates.

Fixes overwriting of templates when two different libraries have templates for same controller/action pair.

Refs #611.
Obsoletes #992.

Updating test for template name change.
Adding synthetic inode when compiling templates on Windows.

Closes #611.

Updating test.
Small optimization when GC'ing old templates.