fix #1395 and speedup context.autocomplete a lot
fix #1396 and add a test for it
add install and upgrade manual to master
change upgrade