Is there any program to control motor?

I haven't tried it (i don't have a Pi), but there is a nodejs library for Pi GPIO access, so you should be able to write something as a node-service for it.

There is a thread regarding that here: