Extracted electron manager from core and added dependency resolver