Moved functions to be consistent with comments

There is a comment that says all the functions after a certain point are
helper functions. I didn't notice this comment when I was first adding
new functions. As a result, there were non-helper functions in the
helper function section. They've now been moved to correct for this
mistake.
Cleaned up release site code remaining in parser.

Moved variable declarations to where they are actually used instead of
at the beginning of the function. Renamed variables so they are more
clear instead of 2 or 3 letter acronyms (e.g. rrd, rsop).
More work on release site creation for the API.

Amongst other things, this includes decoupling the code responsible for
doing region based boolean operations (e.g. myobj[reg1]-myobj[reg2])
from the parser.
Code clean up. Work on creating rel sites for API.

-Updated function comments
-Wrapped long lines
-Renamed unclear variables
-Decoupled some of the list based release functionality from parser