Add proper lua api deprecated handling

As various discussions about broken lua api revealed we've got need for proper handling of old and sometimes broken lua api calls.

In order to get rid about them we need a way to give mod authors chance to replace them prior removal.
This patch adds (configurable) logging of deprecated functions mod authors are suggested to set
 "deprecated_lua_api_handling" to error in order to replace those calls as soon as possible.

Server owners running >>>release build<<< don't need to do anything as legacy handling is done there.

Everyone running >>>debug build<<< will see log messages about deprecated functions, unless having manually set "deprecated_lua_api_handling" to "legacy"