Fix API path builder. Avoid doubling of the dots.

e.g. "forum..index.title"
Refactor lib/system/init/bundle/views.js