A general observatory control software framework design for existing small and mid-size telescopes