use const char * in interface functions
replace es_size_t with size_t

Thanks to Pavel Levshin for the suggestion to use size_t in the new
API. And thanks to Pavel and David Lang in the following discussion
on the speed of 32 vs 64 bit variables in regard to the stack.
move rest of exposed API to use "const char*" instead of "char*"