private message sending changed to ajax

Changes private message sending to ajax hence preventing user to re-write message form if error occurs.

fixes #4210