Clam shell mode without external display, keyboard, mouse
Not natively, but you can use an app like InsomniaX to prevent the device from sleeping when the lid is closed.

http://www.macupdate.com/app/mac/22211/insomniax