Implemented preload, new refreshRate behaviour and bug fixes

The pull request contains:

- preload full implementation
- refreshRate behaviour when 0 or negative
- bug fixes (HTTP server socket fix, etc)
- documentation update