Refactor foundation server,
begin work on API doc,
add to and modify markdown.