Migration to polarssl
WIP chunk writing
Bug fixes
Added SQL table creation script for chunks
Switching to in-memory database