Non-JIT improvements from kmillar/cxxr

The files in this pull request:
   * Require the compiler to support C++11
   * Add a gtest unit testing framework and adds some tests.
   * Improves the travis auto-tester configuration
   * Fixes a number of bugs
   * Refactors the code for stack checking and bailout handling.