Add apidocs template and genration task

This is almost a 1:1 copy of the ol3 api docs