Ropes integration

Adaptation of the old Ropes code to fit with the new model, also added a test for the Text API.

At the same time, the code was cleansed and simplified a bit.

Note : For the test to comply, the modifications of PR #435 need to be merged.