Install the metadata agent before attempting to restart it
Move the metadata_agent.ini template definition to after the
package installation so that the immediate restart notification
will not error.

Change-Id: Iae30b7dc8140825ef3f6da2d19c83b25b5401a56
Closes-Bug: 1397700