add new article api resource, fix api image updating, add behat tests

why this is changed back to 777 ?