fix import classes button
remove add-class tooltip.
lighter style to the host status labels.
refs #2041 - changed puppetclass/:id/parameters from put to post.
fixes #2151 - use DN environment variable instead of CN

nginx is unable to pass bits of the X.509 subject, only the entire DN, so
support that as a lowest common denominator.
fixes #2146 - prevent double render
refs #2146 - ensures redirect does not break on api requests too
Using Apipie versioning features