First iteration for a web and api test framework

adrianq/OpenSourceBrain/redmine#92