Add apidocs template and genration task

This is almost a 1:1 copy of the ol3 api docs
Merge pull request #112 from ahocevar/apidoc

Add apidocs template and generation task