Restructure of project files

-create external dir to hold all external dependencies
-moved all *.c and *.h into src
-fixed Android makefiles
-fixed some bugs for encrypt primary user