Add support for entrypoint to "fig run"

Cleaned up version of #414.

Ref #363.