anchor.diff:      DefSpace.
   
   create_space_for_user(SpaceName, ReqParams) ->
  +    ?PRINT(SpaceName),
  +    ?PRINT(ReqParams),
       {RestAddress, Headers, Options} = ReqParams,
       Body = jiffy:encode({[
           {name, SpaceName}
       ]}),
       Response = do_request(RestAddress ++ "/user/spaces", Headers, post, Body, Options),
  +    ?PRINT(Response),
       get_header_val("spaces", Response).
   
   set_default_space_for_user(SID, ReqParams) ->
  
positive.code:     %% save cert
      [Cert, ProviderId] = get_body_val([certificate, providerId], Response),
      file:write_file(CertFile, Cert),
  
      %% set request options for provider
      Options = [{ssl_options, [{keyfile, KeyFile}, {certfile, CertFile }]}],
      %% set request parametres for provider
  
negative.code: do_request(Endpoint, Headers, Method, Body) ->
      do_request(Endpoint, Headers, Method, Body, []).
  do_request(Endpoint, Headers, Method, Body, Options) ->
      ibrowse:send_req(Endpoint, Headers, Method, Body, Options).
  
  
  get_macaroon_id(Token) ->
      {ok, Macaroon} = macaroon:deserialize(Token),
      {ok, [{_, Identifier}]} = macaroon:third_party_caveats(Macaroon),
      Identifier.
  
  prepare_macaroons_headers(SerializedMacaroon, SerializedDischarges)->
      {ok, Macaroon} = macaroon:deserialize(SerializedMacaroon),
  