Convert schedule_form partials to haml
Fix database diagnostics tab

This is to fix the following two problems:
1. Traceback when accessing the diagnostics -> database tab:

Error caught: [NoMethodError] undefined method `display_name' for nil:NilClass
vmdb/app/views/layouts/_edit_log_depot_settings.html.erb:17

2. DB depot selection not working. This was caused by @prev_uri_prefix
being erroneously overwritten by log_depot_get_form_vars() method.

https://bugzilla.redhat.com/show_bug.cgi?id=1145800
Reset value of index if chart is not available.

- Added line of code to reset value of index in @perf_options to fix an issue([] for nil:NilClass error), if user has zoomed in on one of the charts and then changed options such as group by from the options box on the screen and the returning result didn't include the chart user was zoomed in on. With this change user will be presented with all the zoomed out available charts.
- Moved setting of chart_layout variable outside of the if block as perf_gen_chart_layout method might set @perf_options[:index] to nil in case the zoomed in chart is not present for selected options on screen.

https://bugzilla.redhat.com/show_bug.cgi?id=1144622
https://bugzilla.redhat.com/show_bug.cgi?id=1145741
Merge pull request #680 from h-kataria/fix_nil_error_when_changing_group_after_zooming_chart_in

Reset value of index if chart is not available.
Merge pull request #717 from eclarizio/convert_schedule_form_erb_to_haml

Convert schedule_form partials to haml
Merge pull request #738 from mzazrivec/fix_database_diagnostics_tab

Fix database diagnostics tab
Use jasmine for javascript testing
Add Angularjs and Angular-mocks
Angularize most of the configuration schedule form
Centralize definition of $j
Turn the entire schedule editor form into angular

This is still not completely finished, as there is still a bit to clean
up in the controller. The mechanism to detect whether or not there have
been changes to the form has also not been implemented in this commit,
and in fact the buttons remain unclickable even when changing things.
This commit is already large, so I wanted to make an attempt to break it
up.
Add routes for angular schedule_form_controller and change PUT to POST
Angularize save/reset/cancel buttons for schedule form
Address some Rubocop concerns