Refactoring domain layer. #41

I merged manually adding of `jdbcTemplate` in infra.xml.
Please review #41 and manually merging, and merge to 1.0.x branch.