persist sessions, wait for container to load fully, fixes and refactors

- Added check in host nginx to wait till both tornado and nginx in container have started up.
- Split Julia package installation while creating docker image. Easier to recover from a failing package. Some of the packages can be pretty heavy.
- persist (stopped) sessions for all users.
- refactor host python code.