redid phase 1 completely
some utilities for declarations
bug fixes
added forgotten rest/body parser
exported declaration utilities