New problem editor

For #86

Add multiply samples support, the picture below shows the new sample editor.

![qq20140321-8](https://f.cloud.github.com/assets/2420472/2484382/aca2ba26-b10c-11e3-8f77-98534d23b81b.png)

@pfctgeorge Please merge #149 first!