Improve detection of installations errors

When you install an app,
and smth fail because of a syntax error or smth,
owncloud does not provide feedback or message...

i've added a .fail to the ajax and i set back the button to active

may be up-ported to master