Added a base-structure with directives and a factory. Cleaned up som html