Merge remote-tracking branch 'adrian-rosello/refactor/rename-switch-monitoringcapab' into feature/net-statistics
CircuitStatisticsCapability skeleton.
CircuitStatistics model.
Modify model adding TimePeriod class.
Implementation of reportStatistics in CircuitStatistics capability.

Conflicts:
	extensions/bundles/genericnetwork/pom.xml
GetCircuitStatistics implementation and features for openCSV.

Conflicts:
	extensions/bundles/genericnetwork/pom.xml
	pom.xml
Add numeric control to timestamps.
Private methods at the end of the class file.
Add @Consumes annotation to IStatisticsCapability.
Port Statistics Monitoring skeleton and implementation.

TODO:
- Filter results using given timeperiod
- Use PortStatisticsCapability instead of INetworkStatisticsCapability to get stats
Merge pull request #949 from logoff/ofertie/net-port-stats

Network Port Statistics capability skeleton

And some improvements in ofswitch Port Statistics Capability.
Filter results using given TimePeriod.

This patch uses SortedMap and its TreeMap implementation to hold TimedStatistics.
Filtering the map using time period is achieved by SortedMap.subMap(K from, K to) method.
Add sortedMap to improve efficiency in filtering circuits statistics per time period.
Additional tests for the StatisticsCapability.
Serializable IPortStatisticsMonitoringCapability interface.

Both methods return an object of type TimedPortStatistics, which is serialized as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<timedPortStatistics>
    <statistics>
        <statistics>
            <packetLoss>0</packetLoss>
            <portId>p1</portId>
            <switchId>switch1</switchId>
            <throughput>10</throughput>
            <timestamp>1</timestamp>
        </statistics>
        <statistics>
            <packetLoss>0</packetLoss>
            <portId>p2</portId>
            <switchId>switch1</switchId>
            <throughput>10</throughput>
            <timestamp>1</timestamp>
        </statistics>
        <statistics>
            <packetLoss>0</packetLoss>
            <portId>p1</portId>
            <switchId>switch1</switchId>
            <throughput>10</throughput>
            <timestamp>2</timestamp>
        </statistics>
        <statistics>
            <packetLoss>5</packetLoss>
            <portId>p2</portId>
            <switchId>switch1</switchId>
            <throughput>100</throughput>
            <timestamp>2</timestamp>
        </statistics>
        <statistics>
            <packetLoss>0</packetLoss>
            <portId>p1</portId>
            <switchId>switch1</switchId>
            <throughput>10</throughput>
            <timestamp>3</timestamp>
        </statistics>
        <statistics>
            <packetLoss>0</packetLoss>
            <portId>p2</portId>
            <switchId>switch1</switchId>
            <throughput>10</throughput>
            <timestamp>3</timestamp>
        </statistics>
    </statistics>
</timedPortStatistics>
Add licenses.
Merge branch 'ofertie/monitoring' into feature/port-statistics-monitoring
Merge branch 'ofertie/monitoring' into feature/port-statistics-monitoring
Fix bug: was calculating packetloss using only current stats, but should use previous stats too.
Add missing license.