LTI: fix reordering bug in Studio

This PR adds fix for [BLD-543](https://edx-wiki.atlassian.net/browse/BLD-543).

LTI module is refactored in this PR. 

@valera-rozuvan , @auraz please review.