improved db code to auto-reconnect if db timeout occurs (useful in websocket apps); moved the startup code to reside in index.php instead of bootstrap.php so websocket apps can startup without a URL request; added Nginx config file examples alongside example.apache2.conf in config folder.

Signed-off-by: baracudda <ryan.fischbach@istresearch.com>