Murphy bed mechanism