Move main package to top-level

Jussi Virtanen pointed out that the installation one-liner looks like a
typo because of the "capstan/capstan" postfix:

  go get github.com/cloudius-systems/capstan/capstan

Fix that by moving main package to top level.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Merge pull request #60 from penberg/main-package

Move main package to top-level
util: Add CopyFile helper

Copy file under both Posix systems and Windows.

Signed-off-by: Asias He <asias@cloudius-systems.com>
util: Move termios_windows.go under util

Also, move it to the util package.

Signed-off-by: Asias He <asias@cloudius-systems.com>
At least tell the user that the first argument they provide will allow them to select a seperate image.
Merge pull request #63 from posix4e/capstan_usage_cleanup

At least tell the user that the first argument they provide will allow t...
Merge pull request #61 from asias/util

util: Add CopyFile helper
README: Add VMware Workstation and Fusion to supported hypervisors.

Now capstan works with VMware Workstation on Windows and Linux, Fusion
on Mac OS X.

Signed-off-by: Asias He <asias@cloudius-systems.com>
Add wiki link for installation instructions

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Switch to new YAML library

The YAML parsing code is very verbose because of Gypsy. Switch to a new
YAML library suggested by Samuli Heljo that simplifies Capstan code a
lot.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Merge pull request #66 from penberg/yaml

Switch to new YAML library
qemu: Store VMConfig to a file

We can use this file to restart a stopped instance.

Signed-off-by: Asias He <asias@cloudius-systems.com>
util: Add SearchInstance helper

Give an instance name to search if this instance exists under
.capstan/instances.

Signed-off-by: Asias He <asias@cloudius-systems.com>
cmd/stop: Switch to util.SearchInstance

Signed-off-by: Asias He <asias@cloudius-systems.com>
qemu: Support start an stopped instance

It works like below:

    $ capstan run osv.qcow2
    Created instance: i1397047839

    $ capstan stop i1397047839
    Stopped instance: i1397047839

    $ capstan run i1397047839
    Created instance: i1397047839

Note, Instance is not deleted when it is stopped any more. capstan
delete will be added to support delete an instance soon.

Signed-off-by: Asias He <asias@cloudius-systems.com>
gce: Support DeleteVM

Changing the name and arg of vmDelete to DeleteVM which will be used by
`capstan delete` cmd.

Signed-off-by: Asias He <asias@cloudius-systems.com>
vbox: Change DeleteVM to be used by capstan delete

After this, instance is not deleted when stopped.

Signed-off-by: Asias He <asias@cloudius-systems.com>
vmw: Change DeleteVM to be used by capstan delete

After this, instance is not deleted when stopped.

Signed-off-by: Asias He <asias@cloudius-systems.com>
qemu: Change DeleteVM to be used by capstan delete

Signed-off-by: Asias He <asias@cloudius-systems.com>
cmd/delete: Introduce capstan delete cmd

This cmd is used to delete an instance on the local disk or in the
cloud.

Signed-off-by: Asias He <asias@cloudius-systems.com>