moved emotions to server side

*  removed emotions from index.php
* added emotions function to server.php
* run new emoticons function when new message is received
fixed the port mismatch
remove spaces
add hyperlink detector

*add url function. which converts a string with a url to a html
hyperlink
* run function when new meg is received
added youtube embed detector

*added youtube function for converting youtube links to embed html
*run youtube function when player msg is received
commented out the youtube function

was converting all comments to youtube videos
added new function for received msg