Updated some UI modules to use api's for dependent entities
updated arch tests to use api to create OS

corrected indentation for few template tests

Updated all usergroup tests to use fauxfactory and blocked tests with bz-id

updated subnet tests to create domain using api

Updated OS tests to use apis to create partition_table, config_templates, arch, OS and media

updated all media tests to use media URL from Constants

using media URL from Constants for location tests

Removed single value dict from test data

clubbed two negative create domain tests in one

clubbed two negative create config_group tests in one

clubbed two negative compute resource tests in one
Merge pull request #1430 from sghai/misc-changes

Updated some UI modules to use api's for dependent entities
Port old API tests for repositories

Completely rewrite existing tests in module `test_repository_v2`. Make them more
terse, efficent and thorough. Drop module `test_repository`, as the "v2" module
now performs its responsibilities.