Added write medium API
Merge branch 'master' into apiWriteMedia

Conflicts:
	Controller/Api/GalleryController.php
Moved csrf_protection disabling
Merge pull request #511 from Bladrak/apiWriteMedia

Added write medium API