Refactor fake referer example.
Add code for server side and move client code in to client folder.