added apidoc template based on twitter bootstrap

issue #1797