added lazy configuration
added test for websocket lazy configuration
fixed config defaults
improved lazy websocket test
moved $open method near $close