Fix the error in setting the API URL

Set the URL of midonet-api properly by accepting it as the
first argument.

Signed-off-by: Ryu Ishimoto <ryu@midokura.com>