Reworked API targetting. Reworked FaceRecognition and Custom Object interfaces. State object fixes. Added environment manager. Other tweaks