'on(std::function...)' method of application class is deprecated because it's useless. Old versions of 'on' method have been returned for backward compatibility with old function handler. Also here are some minor codestyle changes in storage stub.