Automatic production/development mode.

Also fixed ordering on front page.