Fixes blocks and endpoint crash

added object names to the block return to make coding simpler. Also
changed namespace to an empty string instead of nil since it causes a
crash when sending events. Crash is due to the SocketIO library calling
copy on endpoint which comes from the namespace parameter.