Add PHP methods "do_post_message", print_analytics_javascript

* Edits from: 6 June 2014.