Use the image-api endpoint within the image_image LWRP for non-localhost uploads

Also updated the CLI glance usage to non-deprecated parameters. Immediate
service restart on the glance-api.conf template to catch updates to the
configuration.

Change-Id: I1f05bc367ccd06d2116e45f046897d9dff689f37
Fixing db_pkg install when db_type is sqlite

* Added test case for sqlite db_type

fixes: bug #1248420

Change-Id: I58d7a438e7f26005e3fca4dbfc1b7c4550442ad5