Add localization calls to the subnets and the trenda pages.

There are other changes to the common layouts based on simple testing.
Use proper syntax for step 2 title, comment by Joseph Magen
Load the apipie documentation when calling '/api'

The documentation is used to list the links for the resources. We make
sure it's loaded.
fixes #2272 Added Capybara intergration tests