Alternate API_URL
Cleaned up constants
Directives
More default db inserts
Passing parent id on resource db query
Big commit

sorry! no time! :/