main project structure and some essential code

The main project structure, ported pstdint.h (for portable fixed size
types), hash functions.