Removed (hopefully) all hard-coded references to "localhost"
(EXC: database connection, where it is adequate)
Added data structures that are not necessary so far