Merge pull request #19 from andrew-aladev/master

Changed malloc and memset 0 to calloc, deleted unused variable "token". New permission and no listen points test.
Added HTML encoding codec.
Merge branch 'master' of github.com:davidmoreno/onion
Added onion_response_write_html_safe that writes safe html (quoted html). Use it in otemplate, added tests.
Delays header send to try to insert the proper content length, and enforce keep alive.
When delaying heaer write, use onion_request_write to refill the old data after setting the proper header.
Fixed bug at 08 post, expect a behaviour that do not happen anymore and specific from internal workings.
Fixes to properly stop at onion_listen_stop. Added test.
Removed orm and 09-orm from master, was for another branch.
Fixes to webdav and shortcuts, thanks to t-oster (https://github.com/t-oster).
fixed gcc 4.6.3
Merge branch 'master' of github.com:davidmoreno/onion into websockets_refactoring