Implement validation into API.
Refactor Gulp tasks.