Refactor flask app structure, removu unused erlang deps