Code clean up and coding standards

Hi Elliot,

Thanks for making this field template available, it was a big help in creating my own ACF field.

I’ve cleaned up the code and altered the coding style to conform to official Wordpress coding standards. Please see commit messages for a list of changes.

Please consider pulling these changes into your repository to help give others and even better starting point for new ACF field plugins.