Consistency with keystone client

    The api have been refactored in order to be consistent with
keystone client. The http function in utils was also modified in
order to provide more powerful features.
Crappy commit