lots of refactoring

- added support for layout blocks (components) nm-init, etc.
- added  functions for layout settings
- removed globals $NMIMAGES, $NMTITLENOLINK, $NMGOBACKLINK, $NMREADMORE
- global $nmoption for all layout options