Casa simultaneously announced a new API designed to help its users interact with third-party services and the closing of a $21 million series A round.