Test examples

This PR implements a test which runs all the examples. This is useful as it runs the examples each time `R CMD check` is invoked, either manually or via Travis or Appveyor CI services.

This PR also removes the old `inst/tests` folder and contents, and renames the current test in `tests/testthat` such that they follow the `test_foo.R` naming convention.