fixed wrong 'main' param, now the entry point is compiled in /build
updated to use assertResourceExists()
added foreign keys validation: checks if a linked resource is actually linked by a specified foreign key; also added actual support for '/links/' paths
added resource description validation logic, settled a format for resource descriptions (thus edited some occurence of old assumptions on it)
the example now reflects the new resource description format