Fix bug in tplcache.

1. bug of nil tplcache object when call `ReplaceCachedTemplates` before
server start. caused by wrong initialization order.
2. only handle default static dir "assets" when it exists before sever
start.