Added more tests and functionality for the LightsApi. Also fixed PUT and POST, since they were broken (migration from 2 to 3)