Upgrade entity api module + fixed small issues during install/reset process. Renamed the "update" script to "upgrade".