Modified insert process.

Added ajax call for inserting. Made web service function for inserting
new user.