An arduino sketch to imitate an apple remote with the controls exposed through a simple web API