Implemented POST links using JS and fixed xhpy validation errors.

We can now use https://github.com/bogdan2412/xhpy which supports
HTML5 data-* attributes until it is merged back into original
branch.