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