Added application/json header to AP manager client requests
Added URL encoding for MAC addresses in AP manager client.