Merge pull request #3 from ajhager/master

Fix Writers returning n-1 bytes written.
Fixes some inconsistencies in README.
Fixes grammar issues in comments for generated functions.
Fix issue 4. Removes debug output from pipe mode.
Merges translation functions into translate.go.
Runs gofmt on code.
Minor cleanup of README.
Fixes bug in StringWriter, which causes the compiler to
generate a segfault when there are too many string
concatenations. This happens when we convert a file of
about 100kb or larger.

The fix modifies the StringWriter to write the file data
out into a single, long string, without concatenations.

This addresses issue #5
Bumps version number.
* Bump version to new release: 2.0.0
  We do this, because the changes in this patch fundamentally
  alter the way code is generated by the tool. This will, in some
  cases, be incompatible with older versions.
* Performs cleanup and minor code fixes.
* Adds two new command line flags:
  * -prefix: This accepts a partial path. It is used when generating
    a target function name, as well as the key for the Table of Contents
    map (see below). The specified prefix is applied to the input
    file name, causing the prefix section to be stripped from the
    input file path. E.g.:
    ```
    input: /path/to/foo.x
    prefix: /path/to
    output: /foo.x
    ```
  * -toc: This is a boolean flag which tells the tool to generate
    a table of contents for the generated data files. It creates
    a separate 'bindata-toc.go' file, which defines a global map
    named `go_bindata`. It then appends an `init` function to the
    generated file. This function makes the data function register
    itself with the global map.
* Fixes the function names the tool infers from input file names
  to include the full path. This fixes potential name collisions
  when the same file name is processed from different directories.
  For example, we can now safely import the following two files:
  ```
   input file: css/ie/foo.css
   output function: css_ie_foo_css()

   input file: css/chrome/foo.css
   output function: css_chrome_foo_css()
  ```
Runs go fmt.
Changes the meaning of the -out command line flag.

This now expects a directory path to store the generated file(s) in.
This was previously a path with file name. We now always use
the filename, inferred from the input path.
Adds a check to ensure the specified output directory actually exists.
Reverts change to -out flag. One should specify the full path
of the target file, instead of just the target directory.

This allows us to overwrite a generated file from a previous
build cycle. This addresses issue #8
Bumps minor version.
Added support for build tags with the -tags flag
Merge pull request #9 from eliasnaur/master

Added support for build tags with the -tags flag
Made the code usable as a library

- Library is named bindata
- Currently exports: Translate
- The library code is in lib/
Additionale export

- SafeFuncname
- Tiny doc patch
Merge pull request #10 from octplane/mine/master

Make bindata usable as a Library
Fix for issue #11