Add getCodeFromServer.
Merge pull request #3 from macrov/Demo

Add getCodeFromServer.