Fixed the following issues(applied biswajit and manoj patch)

1)Tabs in instances,project detail page is throws error in firefox
2)Port distribution drill down in project detail page is redirecting to different view because of template not in the scope
3)Instances tab in the network and project details page showing instance not related to the current project/instance
4)Moved the common to templates to tenant_monitor_common.view file