How do I do this? (movie drag n' drop)

Hi,

I have a project thtat really needs this kind of functionality:

http://www.surfline.com/moviemaker/

If anyone can point me in the right direction that would be great! Looking for help on both the fron end and backend.

THANKS!