Fix to use empty()
Added server/MainFile.hpp to SWIG bindings.