Fixed missing escaping and wp coding standards

Hey,

Per Tribune Media request here's a couple of changes to get the the plugin approved for wordpress.com VIP.

Cheers,
Rinat