Created some base classes

Followed the Getting Started topic on
http://mybatis.github.io/mybatis-3/getting-started.html