simplified the php sample, better remoting example, cocktail and nme samples