Template upload: revamp template name, use version file

If version file exists, it will be used. Now it'll look like this:

cfme-5.2.4.2-0624
cfme-nightly-5.3.0.0-15.el6cf.alpha7-0623
miq-nightly-201406242000
At least one space should follow `#`