Send touch capability to APIs

tch=true or tch=false
refactored ajax requests (bug 848952) WIP
Merge pull request #53 from ednapiranha/bug848952

refactored ajax requests (bug 848952)
send cookies to backend