Shell autoreloading functionnality  from @Bpless ported to Flask-Script.