Use injected EntityManagerFactory.

This patch changes the way GenericOSGiJpaRepository and SecurityRepository get an EntityManager.
Instead of looking up in the service registry for an EntityManagerFactory, this object is now injected at instantiation time.

Injection is specified in blueprint configuration files, by first resolving a reference to the EntityManagerFactory service,
and second injecting it as a property when instantiating each ResourceDescriptorReposiroty bean. The same is true for the SecurityRepository.

All bundles resolving a reference to the EntityManagerFactory must import javax.persistence package.
If the reference is in blueprint files, this import must be explicitely set in maven-bundle-plugin instructions in the bundle pom.xml, because the plugin does not inspect blueprint files.
All required poms have been updated with the new required import.

This patch also fixes a duplication of persistence related beans in org.opennaaas.core.security (same beans were instantiated in blueprint and spring-context.xml)
Persistence related beans and services are now instantiated and published by blueprint.
The spring-context.xml file resolves references to required persistence services using the osgi registry.

EntityManagerFactory creation and injection works as follows:
- A data source is specified in a persistence file.
- The data source is published as an OSGi service using javax.sql.DataSource interface and with osgi.jndi.service.name property set to the jdbc identifier of the DB.
- Apache Aries JPA (that listens to data sources being published as explained above) creates the EntityManagerFactory and publishes it as an OSGi service, with following properties:
	osgi.unit.name - this is the name of the persistence unit
	osgi.unit.provider - this is the class name of the JPA PersistenceProvider that was used to create the EntityManagerFactory
	org.apache.aries.jpa.container.managed - this property will be set to true, indicating this is a managed EntityManagerFactory.
- A reference to the EntityManagerFactory is obtained from the OSgi service registry using javax.persistence.EntityManagerFactory interface and properties above.
- The reference is injected in desired bean by blueprint.
More information at https://aries.apache.org/modules/jpaproject.html
Itests archetype.
Merge branch 'develop' of https://github.com/dana-i2cat/opennaas into feature/itests-archetype
SampleResource unitary and integration tests.
Merge pull request #735 from adrian-rosello/feature/itests-archetype

Feature/itests archetype
Merge pull request #736 from adrian-rosello/feature/sample-resource-itest

SampleResource unitary and integration tests.
NCLController accepts SDNNetworkFlow as parameter in allocateFlow().

NCLController API and implementation has changed in order to use SDNNetworkFlows instead of FlowRequests.
- Logic for Tranlating from FlowRequest to SDNNetworkFlow has been moved to a dedicated component (RequestToFlowLogic) that is part of the provisioner.
- Logic for creating Flow from already allocated SDNNetworkFlow(s) has been moved to NCLProvisioner.
- NCLController is now very similar to SDNNetwork IOFProvisioningNetworkCapability.

Some tests have been updated.

This patch fixes issue:
http://jira.i2cat.net:8080/browse/OPENNAAS-1182
Merge pull request #739 from isartcanyameres/feature/allocate-most-specific-flow

NCLController accepts SDNNetworkFlow as parameter in allocateFlow().
Typo error in blueprint for RequestToFlowLogic class. Renamed to RequestToFlowsLogic according to the interface name it implements.
Merge pull request #740 from adrian-rosello/fix/ncl-typo-error

Change RequestToFlowLogic class name to RequestToFlowsLogic
Bug in class definition.
Merge pull request #741 from adrian-rosello/fix/ncl-typo-error

Bug in class definition.
NCL respects the IPs provided in createRequest call.
Merge pull request #742 from adrian-rosello/features/flow-with-ip

NCL respects the IPs provided in createRequest call.
Set ToS correct value.
Merge pull request #743 from adrian-rosello/features/flow-with-tos

Set ToS correct value.
Counters map wrapper.
Custom Jackson JSON serializer for CountersMap wrapper.
Custom Jackson JSON provider using wrapper deserializer.
iFloodlight counters API REST client interface.