Security and Safety Services for Automation IoT Systems and their Application for Mobile Visual Localization