Support index.html

Also allow configuring the 'public' dir when using batteries.