Fixed issues with Makefiles and REMOTE_ENABLED

Pulled layour functionality from slayout.C to process.C