fixing URL construction functions and calls
Addition of simple real time chat application example