fixed #75 (directories become /index.html) and converted back to coffee-script

Signed-off-by: Paul Marrington <paul@marrington.net>