a more harmonic create_file in admin editor

this commit removes the nested $.ajax(...) calls introduced in https://github.com/web2py/web2py/pull/322 to use functions already present in web2py.js