[Sunstone] Add memory default in template creation
(cherry picked from commit e1caa587b25b65326a1b1288821c723d45b5879a)
bug #2114: Now the cluster change is actually performed

Info panel still not updated :(
(cherry picked from commit 7c36d1f873969e54f65870efe9247f03b8b0e6ff)
Bug #2056: re-check resource row after refresh
(cherry picked from commit 33d14dc20ed83cc4a648b66c883c8f4ed3f94321)
Bug #2315: Uncheck context on update if context doesn't exist

As a bonus, set memory default on VM template create
(cherry picked from commit ff9210f95ea5b214685cf393bd60ea277292ab93)
Initial value for VM Template memory field
(cherry picked from commit 15ae2c9fa466e83cda1e7f6eff14ed1a73a07731)
Bug #2314: Change deprecated RANK and REQUIREMENTS for their SCHED_ equivalents
(cherry picked from commit ac53d33665e4a04145e299df7a2e25ccecbf8956)
Bug #2290: Clear hidden pane before attaching imge to VM disk
(cherry picked from commit 5528686aa63991aab53c845158ffd2734cc00ab6)
Bug #2290: Switch from input to label to VM and DISK ID values in different VM dialogs, so value is not lost upon datatable refresh
(cherry picked from commit e3e8a19f3e673ce138b2c2b890dc88a21f1835d4)
Bug #2290: Now refresh after successful attach/detach won't fail
(cherry picked from commit bf5d2380566bd5fad47623d6594831c18bee6bbd)