Refactor WithingsAPI into multiple classes, add test classes