Added server sided XIM Reset

**NOT TESTED YET**
Working PIN Reset

I fixed pin reset issues. It now works perfectly by storing data in a
temp array, then removing the data once its done.
Merge pull request #3 from apandhi/master

Added PIN Reset functionality on server side