Extract common logic for result.
Extract api base controller.
Merge pull request #16 from railsrumble/some-refactorings

Some refactorings