Add support for custom template names

Adds the `name` option to `compileClient` and adds `--name` and
`--name-after-file` to the command line.

Thanks to @dscape for initial work on this feature

[closes #1493]
Handle `-`s in filenames as expected for `--name-after-file`
Use path.basename instead of manually splitting out the file name
Merge pull request #1580 from visionmedia/support-custom-template-names

Add support for custom template names