use TOTAL_HOST_MEMORY constant in view now as well

the constant was also renamed.

This just reduces the number of times we need to call the host_memory_usage() code, because the total host memory shouldn't normally change.

Also moved the constant, now that it is used in two places, moved it to lwp/core.py