added lightweight http server, switching pins controller