pubdb node module created

- json can now be created on server side
- renamed buildJSON function to buildPublicationJSON