ID generation and write lock per session
Change how we manage attachments
Can now read historical data
Updated readme