_config and index file update. _bodyend and _headtag file added.

- commonly used code added to new files.
- all back-ends are linked.