Bug fix: prevents verse_server for load 1, when WebSocket is used.
 
 - It is neccessary to set read/write set of socket descriptors only
   in situation, when WSLay has something to receive/send.
 - Small refactoring
 - More debug prints.

Signed-off-by: Jiri Hnidek <jiri.hnidek@tul.cz>
Close webSocket connection, when handshake timed-out/ wrong command is received.

 - Connection with WebSocket is closed in friendly way, when WebSocket
   client does not finish handshake within 30 seconds.
 - When wrong command is received, then connection is closed too.
 - Added some more debug prints.
Small refactoring.
Small refactoring.
Do not rewrite configuration files in /etc/verse.
 - CMake install command overwrote existing configuration files.
 - When configuration files already exist, then this file is skipped.
 - Convert indentation from spaces to tabs.
Create named semaphore with 'unique' name from constant and EUID.

 - This prevents from terminating verseserver during start, when
   named semaphor wasn't closed correctly by some user. Other users
   wasn't able to start verse_server, because user didn't have
   permission for accessing this named semaphore.
 - TODO: needs more testing at other platforms.
Small change: better debug print.
javascript - added tests with Jasmine
Merge pull request #23 from verse/javascript

javascript - added tests with Jasmine
Small refactoring
javasript - requirejs for module dependencies handling
Merge pull request #24 from verse/javascript

javasript - requirejs for module dependencies handling
Fix typing errors.

Signed-off-by: Jiri Hnidek <jiri.hnidek@tul.cz>
Merge branch 'master' of git@github.com:verse/verse.git
Bug fix: SSL_free free BIO too.
Bug fix: writing out of allocated memory.
javascript add negotiation message module
Merge pull request #25 from verse/javascript

javascript add negotiation message module
Set bio and ssl to NULL after all SSL_free().
Extend unit test a little.