lots of cleanup/fixes

- Never write your own routine for UID and GID creation/checking;
  ports framework has that built-in
- Lots of style/conformance fixes in the rc script
- Never MKDIR, always INSTALL

Still not sure you should be writing your own start/stop routines in the rc script; It shouldn't be necessary for this software. I'll need to get my FreeBSD plex server up and running and test. There is a race condition in your PID checking as well, but should rarely get hit. You really should first get the PID# into a variable before doing anything else. I might have more patches soon.