Fixed deprecated var and function names.

ProtocolBuffer API had changed, function and variable names are now
renamed to respect theese changes.
Merge pull request #1 from xtompok/master

Fixed deprecated var and function names.