Fix some issues with templates. Add custom admin pool. Some other tiny changes.