Merge pull request #2 from Mirosta/master

Backend v1
Merge pull request #3 from Mirosta/master

Examples and other utilities
Merge pull request #4 from Mirosta/master

Fixed includes
Add most static snippets to be integrated with PHP
Merge remote-tracking branch 'upstream/master'

Conflicts:
	PHP Lib/api.php

Merge Ed's code